<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends CommonController {
    public function index(){
    	//var_dump($cat);exit;
    	$art = M('Art')->limit(0,5)->select();
    	$this->assign('art',$art);
    	//var_dump($art);exit;
    	$this->display();
    }
    public function zhidian(){
    	$res['title'] = "通知";
    	$res['content'] = "^_^,没有通知~~";
    	$rs['data'] = $res;
    	echo json_encode($rs);
    }
    

}